package com.wistech.search.solr.extend;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.wistech.search.solr.extend.service.CompanyManager;
import com.wistech.search.solr.extend.service.ProductManager;

public class ExternalDataContext {
	@Autowired
	private CompanyManager companyManager;
	@Autowired
	private ProductManager productManager;

	/**
	 * @return the onlineStatus
	 */
	public List<Long> getOnlineUserIds() {
		return companyManager.findOnlineCompanyUserIds();
	}

	public Map<Long, Float> getProductOrderNums() {
		return productManager.getAllProductOrderNums();
	}
}
